package IO;

import java.io.FileInputStream;
import java.io.IOException;

public class FileInputStreamTest {
    public static void main(String[] args) throws IOException {
        //文本内容:测试ABCD
        FileInputStream in = new FileInputStream("/Users/zhang/Documents/doc/test.txt");
        int data;
        while ((data = in.read()) != -1) {
            System.out.print(data + ",");
        }
        in.close();
    }
}
